#include"heap2.h"
#include<stdio.h>
int main()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 7);
	HeapPush(&hp, 342);
	HeapPush(&hp, 5);
	HeapPush(&hp, 567);
	HeapPush(&hp, 3);
	HeapPush(&hp, 9);
	HeapPush(&hp, 7);
	HeapPush(&hp, 5);
	HeapPush(&hp, 2);
	HeapPush(&hp, 1);
	HeapPush(&hp, 11);
	HeapPush(&hp, 72);
	while (!HeapEmpty(&hp))
	{
		printf("%d  ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");
	HeapSize(&hp);
	HeapDestroy(&hp);
	printf("%d  ", HeapSize(&hp));
	return 0;
}